/**
 * 
 */
package com.jie.eclipse.pan.action;

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
import org.eclipse.ui.PartInitException;

/**
 * @author yanjie
 *
 */
public class PanDeveloperhelper implements IWorkbenchWindowActionDelegate  {
	private IWorkbenchWindow wd = null; 
	
	public void run(IAction action) {
		try {
			this.wd.getActivePage().showView("com.jie.eclipse.pan.views.pandeveloperhelperview");
		} catch (PartInitException e) {
			e.printStackTrace();
		}
	}
	
	public void selectionChanged(IAction action, ISelection selection) {
		
	}
	
	public void dispose() {
		
	}
	
	public void init(IWorkbenchWindow workbenchWindow) {
		this.wd = workbenchWindow;
	}

}
